<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 背景图片 </title>
    <style>
        .box{
            width: 1200px;
            height: 960px;
            border: 1px solid #444;
            background-image: url(./image/1.jpg);
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
    </style>
</head>
<body>
    <div class="box">  </div>
</body>
</html>